#ifndef _MY_LED_H_
#define _MY_LED_H_
#include "stm32f10x.h"

#define PORT_LED   GPIOC
#define PIN_LED    GPIO_Pin_13

#define LED_ON     GPIO_ResetBits(PORT_LED, PIN_LED)
#define LED_OFF    GPIO_SetBits(PORT_LED, PIN_LED)
#define LED_TOGGLE GPIO_WriteBit(PORT_LED, PIN_LED, (BitAction)(1 - GPIO_ReadOutputDataBit(PORT_LED, PIN_LED)))

#endif // _MY_LED_H_